<template>
  <div>
    <collapse :posts="posts"></collapse>
    <tableB></tableB>
  </div>
</template>

<script>
import collapse from '../components/Collapse/collapse'
import tableB from '../components/Table/table'
import loggerService from '../common/services/logger'
import commonService from '../common/services/common'

export default {
  name: 'About',
  components: {
    collapse,
    tableB
  },
  data () {
    return {
      posts: [],
      msg: 'Welcome to About page.'
    }
  },
  created: function () {
    commonService.getPostsData().then((response) => {
      loggerService.log("response: ", response);

      this.posts = response;
    })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
